const chalk = require('chalk')

// 绘制控制台图案
function makePattern(stringTem, color) {
    let l = new String(stringTem || string)
    l = l.substring(l.indexOf("/*") + 3, l.lastIndexOf("*/"))
    return chalk[color].bold(l)
}

function ServerName_LogText() {
/*



.____                        ___________               _________ .__            __   
|    |    _______  __ ____   \_   _____/____    ____   \_   ___ \|  |__ _____ _/  |_ 
|    |   /  _ \  \/ // __ \   |    __) \__  \  /    \  /    \  \/|  |  \\__  \\   __\
|    |__(  <_> )   /\  ___/   |     \   / __ \|   |  \ \     \___|   Y  \/ __ \|  |  
|_______ \____/ \_/  \___  >  \___  /  (____  /___|  /  \______  /___|  (____  /__|  
        \/               \/       \/        \/     \/          \/     \/     \/      


*/
}

function HttpServer_LogText() {
/*
--------------------------------------------------------------------------
   _____                              _____                               
  / ___/___  ______   _____  _____   / ___/__  _______________  __________
  \__ \/ _ \/ ___/ | / / _ \/ ___/   \__ \/ / / / ___/ ___/ _ \/ ___/ ___/
 ___/ /  __/ /   | |/ /  __/ /      ___/ / /_/ / /__/ /__/  __(__  |__  ) 
/____/\___/_/    |___/\___/_/      /____/\__,_/\___/\___/\___/____/____/  
                                                                          
--------------------------------------------------------------------------                                               
 */
}

function SocketServer_LogText() {
/*
------------------------------------------------------------------------------------------------------------
   _____            __        __     _____                              _____                               
  / ___/____  _____/ /_____  / /_   / ___/___  ______   _____  _____   / ___/__  _______________  __________
  \__ \/ __ \/ ___/ //_/ _ \/ __/   \__ \/ _ \/ ___/ | / / _ \/ ___/   \__ \/ / / / ___/ ___/ _ \/ ___/ ___/
 ___/ / /_/ / /__/ ,< /  __/ /_    ___/ /  __/ /   | |/ /  __/ /      ___/ / /_/ / /__/ /__/  __(__  |__  ) 
/____/\____/\___/_/|_|\___/\__/   /____/\___/_/    |___/\___/_/      /____/\__,_/\___/\___/\___/____/____/  
                                                                                                            
------------------------------------------------------------------------------------------------------------
 */
}

function Mongodb_LogText() {
/*
---------------------------------------------------------------------
   __  ___                       ____     ____                       
  /  |/  /__  ___  ___ ____  ___/ / /    / __/_ _____________ ___ ___
 / /|_/ / _ \/ _ \/ _ `/ _ \/ _  / _ \  _\ \/ // / __/ __/ -_|_-<(_-<
/_/  /_/\___/_//_/\_, /\___/\_,_/_.__/ /___/\_,_/\__/\__/\__/___/___/
                 /___/                  
---------------------------------------------------------------------                             
 */
}

module.exports = {
    makePattern,
    ServerName_LogText,
    HttpServer_LogText,
    SocketServer_LogText,
    Mongodb_LogText
}